import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'playCount'
})
export class PlayCountPipe implements PipeTransform {

  transform(value: number | string): number | string {
    if(value > 10000){
      return Math.floor(Number(value)/10000)+"万"
      return value
    }else{
      return value
    }
  }

}
